package com.sharding.demo.controller;

import com.sharding.demo.entity.Staff;
import com.sharding.demo.nproxy.mapper.CarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author hu xu hong
 * @Date 2023/4/4 15:08
 */
@RestController
@RequestMapping("/factory")
public class FactoryBeanController {
    @Autowired
    private CarMapper carMapper;

    @GetMapping("/findAll")
    public void findAll() {
        carMapper.car("TTT");
    }
}
